Optimal. Leaf size=77 \[ -\frac{2 b^2 n^2 \text{PolyLog}\left (2,-\frac{e x}{d}\right )}{d e}-\frac{2 b n \log \left (\frac{e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d e}+\frac{x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0581115, antiderivative size = 77, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 3, integrand size = 20, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.15, Rules used = {2318, 2317, 2391} \[ -\frac{2 b^2 n^2 \text{PolyLog}\left (2,-\frac{e x}{d}\right )}{d e}-\frac{2 b n \log \left (\frac{e x}{d}+1\right ) \left (a+b \log \left (c x^n\right )\right )}{d e}+\frac{x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 2318
Rule 2317
Rule 2391
Rubi steps
\begin{align*} \int \frac{\left (a+b \log \left (c x^n\right )\right )^2}{(d+e x)^2} \, dx &=\frac{x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac{(2 b n) \int \frac{a+b \log \left (c x^n\right )}{d+e x} \, dx}{d}\\ &=\frac{x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac{2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{d e}+\frac{\left (2 b^2 n^2\right ) \int \frac{\log \left (1+\frac{e x}{d}\right )}{x} \, dx}{d e}\\ &=\frac{x \left (a+b \log \left (c x^n\right )\right )^2}{d (d+e x)}-\frac{2 b n \left (a+b \log \left (c x^n\right )\right ) \log \left (1+\frac{e x}{d}\right )}{d e}-\frac{2 b^2 n^2 \text{Li}_2\left (-\frac{e x}{d}\right )}{d e}\\ \end{align*}
Mathematica [A] time = 0.0474611, size = 81, normalized size = 1.05 \[ \frac{\left (a+b \log \left (c x^n\right )\right ) \left (a e x+b e x \log \left (c x^n\right )-2 b n (d+e x) \log \left (\frac{e x}{d}+1\right )\right )-2 b^2 n^2 (d+e x) \text{PolyLog}\left (2,-\frac{e x}{d}\right )}{d e (d+e x)} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [C] time = 0.245, size = 755, normalized size = 9.8 \begin{align*} \text{result too large to display} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F] time = 0., size = 0, normalized size = 0. \begin{align*} -2 \, a b n{\left (\frac{\log \left (e x + d\right )}{d e} - \frac{\log \left (x\right )}{d e}\right )} - b^{2}{\left (\frac{\log \left (x^{n}\right )^{2}}{e^{2} x + d e} - \int \frac{e x \log \left (c\right )^{2} + 2 \,{\left (d n +{\left (e n + e \log \left (c\right )\right )} x\right )} \log \left (x^{n}\right )}{e^{3} x^{3} + 2 \, d e^{2} x^{2} + d^{2} e x}\,{d x}\right )} - \frac{2 \, a b \log \left (c x^{n}\right )}{e^{2} x + d e} - \frac{a^{2}}{e^{2} x + d e} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F] time = 0., size = 0, normalized size = 0. \begin{align*}{\rm integral}\left (\frac{b^{2} \log \left (c x^{n}\right )^{2} + 2 \, a b \log \left (c x^{n}\right ) + a^{2}}{e^{2} x^{2} + 2 \, d e x + d^{2}}, x\right ) \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{\left (a + b \log{\left (c x^{n} \right )}\right )^{2}}{\left (d + e x\right )^{2}}\, dx \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F] time = 0., size = 0, normalized size = 0. \begin{align*} \int \frac{{\left (b \log \left (c x^{n}\right ) + a\right )}^{2}}{{\left (e x + d\right )}^{2}}\,{d x} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]